package javabase.schoolwork.day5_29;

import java.util.Date;

/**
 * @author fance
 * @date 2018/5/29 22:05
 */
public abstract class ViolationCard {
    private String name;
    private String banji;
    private Date date;
    private String reason;

    public void realModelMethod() {
        begin();
        getInfo();
    }
    protected void begin() {
        System.out.println("真正的模板方法开始。。");
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBanji() {
        return banji;
    }

    public void setBanji(String banji) {
        this.banji = banji;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
    public abstract void getInfo();
}
